TEMPLATE    =  app
CONFIG      -= qt
CONFIG      += thread debug_and_release
TARGET      =  msgq_test

linux-g++ {
    DEFINES += linux
}

win32 {
    DEFINES         += WIN32 _CRT_SECURE_NO_DEPRECATE _CONSOLE
    DEFINES         -= UNICODE
    LIBS            += -lwinmm -lodbc32 -lodbccp32 -lws2_32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid
    QMAKE_LFLAGS    += /NODEFAULTLIB:LIBCMT.lib /MACHINE:X86 /ERRORREPORT:PROMPT
    QMAKE_CXXFLAGS  += /Gm /EHsc /MT /Od 
}

INCLUDEPATH             += $(BOOSTDIR)
INCLUDEPATH             += ../Util/inc
win32:INCLUDEPATH       += ../component/libIpcSysV/include


CONFIG(release, debug|release) {
    OBJECTS_DIR         =  ../obj/$${TARGET}/release
    DESTDIR             =  ../bin/release
    win32:QMAKE_LFLAGS  += $$QMAKE_LFLAGS_WINDOWS
}

CONFIG(debug, debug|release) {
    OBJECTS_DIR         =  ../obj/$${TARGET}/debug
    DESTDIR             =  ../bin/debug
    win32:QMAKE_LFLAGS  += $$QMAKE_LFLAGS_CONSOLE
}

win32:LIBS              += -L../component/libIpcSysV/lib -lipcd -lshmd -lsemd -lmsgd

HEADERS     = 

SOURCES     +=  \
				../Util/test/msgq_test.cpp \
				../Util/src/sysv_msgque.cpp	\
				../Util/src/ipc_util.cpp

RESOURCES   =  

